<?php 
    $tblItem = new Zendvn_Model_Table_Tags();
    $arrTags = $tblItem->listItem($this->arrParam, array('task' => 'popular-tags'));
    
    if(!empty($arrTags)):
        $xhtml = '';
        foreach ($arrTags as $k => $v){
        	$name = Zendvn_Filter_Filter::filterContent($v['name'], 'filter');
        	$alias = Zendvn_Filter_Filter::filterContent($v['alias'], 'filter');
        	
        	$link = $this->cmsUrl(array(
        			                'module' => 'default',
        			                'controller' => 'index',
        			                'action' => 'tags',
        			                'alias' => $alias
        			                    ), 'tag');
        	
        	$xhtml .= '<li>
                            <a href="' . $link . '" title="' . $name . '">
                                <span class="item-top"></span>
                                <span class="item-center">' . $name . '</span>
                                <span class="item-bot"></span>
                            </a>
                        </li>';
        }
?>
    <div class="main-tag">
    	<div class="tag-top"></div>
        <div class="tag-center">
        	<ul class="tag-item">
                <?php echo $xhtml;?>	
            </ul>
        </div>
        <div class="tag-bot"></div>
        <div class="clr"></div>
    </div>
<?php endif;?>